package cn.com.bluemoon.daps.standard.entity;

import cn.com.bluemoon.daps.common.domain.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 标准-分类表
 * </p>
 *
 * @author admin
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors
@ApiModel(value = "DapSystemCategory", description = "标准-分类表")
public class DapSystemCategory extends BaseModel<DapSystemCategory> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "分类代码")
    private String code;

    @ApiModelProperty(value = "分类名称")
    private String codeName;

    @ApiModelProperty(value = "针对主题或者分类来定义全称")
    private String fullName;

    @ApiModelProperty(value = "分类中父类id")
    private String parentId;

    @ApiModelProperty(value = "说明分类")
    private String remark;

    @ApiModelProperty(value = "对应主题或者分类 1：主题 0：分类")
    private Integer topic;

    @ApiModelProperty(value = "对应主题或者分类的层级")
    private Integer subLevel;

    @TableField(exist = false)
    private List<DapSystemCategory> nextNodes = new ArrayList<>();


}
